import { BinaryDecision } from "framework/FSM/DecisionTree/Decision";
 
/**
 * 爬是否在boost状态
 * 是否需要boost
 */
export class DecisionIsCreepBoost <T extends IStateArg<Creep >> extends BinaryDecision<T>
{


    public testValue(arg:T): boolean
    {
      
        if(!arg.entity.memory.BoostLevel )
        {
            return false;
        }
        if(arg.entity.memory.IsBoosted)
        {
            return false;
        }
        
        return  true
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

